import Vue from 'vue'
import Router from 'vue-router'
import index from '@/view/index'
import ymxgzs from '@/components/ymxgzs'
import ymxmtp from '@/components/ymxmtp'
import ymdhxs from '@/components/ymdhxs'
import ymgywm from '@/components/ymgywm'
import ymtyy from '@/components/ymtyy'
import eCharts from '@/components/eCharts'
import apexcharts from '@/components/apexcharts'
import ymVuetify from '@/components/ymVuetify'

import ymscri from '@/components/ymscri'
import ymzs01 from '@/components/ymzs01'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/index',
      name: 'index',
      component: index
    },
    {
      path: '/new/ymxgzs',
      name: 'ymxgzs',
      component: ymxgzs
    },
    {
      path: '/new/ymxmtp',
      name: 'ymxmtp',
      component: ymxmtp
    },
    {
      path: '/new/ymdhxs',
      name: 'ymdhxs',
      component: ymdhxs
    },
    {
      path: '/new/ymgywm',
      name: 'ymgywm',
      component: ymgywm
    },
    {
      path: '/new/ymzs01',
      name: 'ymzs01',
      component: ymzs01
    },
    {
      path: '/new/ymtyy',
      name: 'ymtyy',
      component: ymtyy
    },
    {
      path: '/new/ymscri',
      name: 'ymscri',
      component: ymscri
    },
    {
      path: '/new/eCharts',
      name: 'eCharts',
      component: eCharts
    },
    {
      path: '/new/apexcharts',
      name: 'apexcharts',
      component: apexcharts
    },
    {
      path: '/new/ymVuetify',
      name: 'ymVuetify',
      component: ymVuetify
    },
    {
      path: '/new/antv',
      name: 'antv',
      component: (resolve) => require(['@/components/antv'], resolve),
    },
    {
      path: '/new/mygantetu',
      name: 'mygantetu',
      component: (resolve) => require(['@/components/myGantetu'], resolve),
    },
  ]
})